import request from '@/utils/request'

// 查询表单变量列表
export function listFormVariable(query) {
  return request({
    url: '/system/flowable/form/variable/list',
    method: 'get',
    params: query
  })
}

// 不分页查询表单变量列表
export function getFormVariableList(query) {
  return request({
    url: '/system/flowable/form/variable/getList',
    method: 'get',
    params: query
  })
}

// 查询表单变量详细
export function getFormVariable(varId) {
  return request({
    url: '/system/flowable/form/variable/' + varId,
    method: 'get'
  })
}

// 新增表单变量
export function addFormVariable(data) {
  return request({
    url: '/system/flowable/form/variable',
    method: 'post',
    data: data
  })
}

// 修改表单变量列表
export function updateFormVariableList(data) {
  return request({
    url: '/system/flowable/form/variable/updateList',
    method: 'post',
    data: data
  })
}

// 修改表单变量
export function updateFormVariable(data) {
  return request({
    url: '/system/flowable/form/variable',
    method: 'put',
    data: data
  })
}

// 删除表单变量
export function delFormVariable(varId) {
  return request({
    url: '/system/flowable/form/variable/' + varId,
    method: 'delete'
  })
}
